/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tdtest.controls.factory;

import javafx.scene.Node;
import tdtest.controls.ControlFactory;
import tdtest.controls.ActionControl;
import tdtest.data.TDAction;

/**
 *
 * @author sutter
 */
public class ActionControlFactory implements ControlFactory<TDAction> {
	
	@Override
	public Node createControl(TDAction action) {
		ActionControl actionControl = new ActionControl(action);
		return actionControl;
	}
	
	@Override
	public TDAction createObject() {
		return new TDAction();
	}
	
}
